<?php

$this->Html->script('controllers/ShiftModels/admin.js', array('block' => 'scriptBottom'));
$this->Html->css('controllers/ShiftModels/admin.css?1', array('block' => 'stylesTop'));
$appBosch->crud = $this->TioCachas->urlsCRUD();
$appBosch->updateMagicTeams = $this->Html->url(array('action' => 'updateMaginTeams'));
$appBosch->crud['update'] = $this->Html->url(array('controller' => 'ShiftModels', 'action' => 'saveShiftModel'));
$appBosch->url = $this->Html->url(array('action' => 'admin'));
?>
    <script id="row-template" type="text/x-kendo-template">
        <tr role="row" data-uid="#= uid #">
            <td role="gridcell">#= nom #</td>
            <td role="gridcell">#= curp #</td>
            <td role="gridcell">#= full_name #</td>
            <td role="gridcell">#= l #</td>
            <td role="gridcell">#= s #</td>
            <td role="gridcell">#= a #</td>
        </tr>
    </script>
    <div>
        <div class="pull-left" id='updateTeams'>
            <button class='btn btn-primary' type="button">Actualizar equipos</button>
        </div>
        <div class="pull-right">
            <input id="datepicker" style="width: 260px;"/>
        </div>
    </div>
    <br/>
    <br/>
    <div id="grid"></div>
<?php $this->start('jsVars'); ?>
    <script type="text/javascript">
        var appBosch = <?php echo json_encode($appBosch); ?>;
    </script>
<?php
$this->end();
